package behavioral.visitor;

/**
 * @ClassName: DVD
 * @Description: 具体元素类
 * @Author: liu-hao
 * @Date: 2023-04-10 22:55
 * @Version: 1.0
 **/
public class DVD implements Element {
    private String title;
    private String director;

    public DVD(String title, String director) {
        this.title = title;
        this.director = director;
    }

    public String getTitle() {
        return title;
    }

    public String getDirector() {
        return director;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}